<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

    include '../AccesoDatos/DaoCensoDigital.php';
    
    $tc = $_REQUEST['tc'];

    if($tc == 1){
        
        $Censo = new DaoCensoDigital("", "", "", "", "", "", "");
        $Censo->ConsultarCensoDigital();
        
    }
    if($tc == 2){
        
        $Piso = $_REQUEST['Piso'];
        $Ubicacion = $_REQUEST['Ubicacion'];
        
        $Censo = new DaoCensoDigital("", "", "", "", "", "", "");
        $Censo->ConsultarCensoDigitalPiso($Piso,$Ubicacion);
        
    }
    if($tc == 3){
        
        $Piso = $_REQUEST['Piso'];
        $Ubicacion = $_REQUEST['Ubicacion'];
        
        $Censo = new DaoCensoDigital("", "", "", "", "", "", "");
        $Censo->DetalleServicio($Piso,$Ubicacion);
    }
     if($tc == 4){
        
        $Piso = $_REQUEST['Piso'];
        $Ubicacion = $_REQUEST['Ubicacion'];
        
        $Censo = new DaoCensoDigital("", "", "", "", "", "", "");
        $Censo->ConsultaServicio($Piso,$Ubicacion);
    }
    
?>

